<script setup>
  const list = [
    {id:'1',name:'志愿者服务',img:'src/img/indeximg/kjfs/用户头像.png'},
    {id:'2',name:'志愿者服务',img:'src/img/indeximg/kjfs/用户头像.png'},
    {id:'3',name:'志愿者服务',img:'src/img/indeximg/kjfs/用户头像.png'},
    {id:'4',name:'志愿者服务',img:'src/img/indeximg/kjfs/用户头像.png'},
  ]
</script>

<template>
<!--  头 -->
  <view class="header">
    <v-icon class="icon" icon="mdi-chevron-right"></v-icon>
    <h3>社区互助</h3>
    <v-icon class="iconx" icon="mdi-chevron-right"></v-icon>
  </view>
<!--  背景 -->
  <view class="bgimg">

  </view>

  <view class="Mutualaidlist">
    <ul>
      <li v-for="(item,index) in list" :key="index">
        <img :src="item.img">
        <text>{{ item.name }}</text>
      </li>
    </ul>
  </view>
</template>

<style scoped lang="scss">
.Mutualaidlist{
  ul{
    li:nth-child(1){
      background: #D1D6EC;
    }
    li:nth-child(2){
      background: #D6C9B9;
    }
    li:nth-child(3){
      background: #B5D8D1;
    }
    li{
      text{
        font-size: 19px;
        margin-left: 5px;
      }
      img{
        width: 50px;
        height: 50px;
        border-radius: 120px;
      }
      width: 94%;
      height: 70px;
      background: #007aff;
      border-radius: 12px;
      margin: 5px auto;
      display: flex;
      align-items: center;
      padding: 12px;
    }
    display: flex;
    flex-direction: column;
  }
  width: 100%;
  background: #FFFFFF;
}
//背景图标
.bgimg{
  img{
    width: 100%;
    height: 200px;
  }
}
//头
.header{
  .iconx{
    opacity: 0;
  }
  h3{
    font-size: 17px;
    line-height: 60px;
    margin-right: 20px;
  }
  .icon{
    margin-left: 12px;
    transform: rotate(180deg);
    font-size: 36px;
  }
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
*{
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}
</style>